﻿
namespace ZR.Model.Models.ProductionControl {
    /// <summary>
    /// 设备运行记录
    /// </summary>
    [SugarTable("cks_device_run_rec")]
    [Table(Name = "cks_device_run_rec")]
    public class CksDeviceRunRecord : BaseEntity {
        /// <summary>
        /// Id 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// PLCID 
        /// </summary>
        public int PlcId { get; set; }

        /// <summary>
        /// 数据块 
        /// </summary>
        public int DbBlock { get; set; }

        /// <summary>
        /// 开始时间 
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 结束时间 
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 持续时间s 
        /// </summary>
        public int? Duration { get; set; }

        /// <summary>
        /// 影响类型 
        /// </summary>
        public int EffectType { get; set; }

        /// <summary>
        /// 影响原因 
        /// </summary>
        public string EffectReason { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }
}